<template>
    <div>
        <h1>{{ msg }}</h1>
        <button @click="count++">count is: {{ count }}</button>
        <p>Edit <code>components/HelloWorld.vue</code> to test hot module replacement.</p>
        <hr>
        <h2>组件</h2>
        <course/>
    </div>

</template>

<script>
    import course from "./course.vue";

    export default {
        name: 'HelloWorld',
        props: {
            msg: String
        },
        components: {
            course
        },
        data() {
            return {
                count: 0
            }
        }
    }
</script>
